package com.example.demo01.exception;


public enum ZgcError {
    //定义枚举对象
    QUERY_OBJECT_IS_NULL("1", "查询对象为空"),
    QUERY_USER_IS_NOT_EXIST("3","查询用户不存在"),
    QUERY_PARAM_IS_NULL("2","查询参数为空");

    //定义枚举属性
    private String code;
    private String info;

    ZgcError(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
}